import request from '@/utils/request.js'

// 获取搜索建议接口
export const getSuggestListApi = (kw) => {
    return request.get('/v1_0/suggestion', {
        params: {
            q: kw
        }
    })
}

// 请求搜索结果页数据的API
export const getSearchResultApi = (kw, page) => {
    return request.get('/v1_0/search', {
        params: {
            q: kw,
            page
        }
    })
}
